package com.thingsgrid.appmanager.controller;

import com.thingsgrid.appmanager.feign.AppMqttMessageFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能说明：应用mqtt feign
 *
 * @author 李龙飞
 * @since 2019/8/28 18:05
 */

@RestController
public class MqttMessageReceiveController implements AppMqttMessageFeign {

	@Override
	@GetMapping("/mqtt/receiveMqttMessage")
	public void receiveMqttMessage(@RequestParam("topic") String topic, @RequestParam("msg")String msg) {
		System.out.println(topic+"/"+msg);
	}

}
